import request from "../util/request";

// 系管理相关接口

// 查询系列表
export const selectDepartmentList = function (params = {}) {
  return request({
    url: "/admin/faculties",
    method: "get",
    params: params,
  });
};

// 根据ID删除院系
export const deleteDepartmentById = function (params = {}) {
  return request({
    url: "/admin/faculties",
    method: "delete",
    params: params,
  });
};

// 添加新院系
export const insertNewDepartment = function (params = {}) {
  return request({
    url: "/admin/faculties",
    method: "post",
    params: params,
  });
};
